package com.tqyan.service.transfer;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(
        name = "DemoFeignClient"
        , url = "https://api.openai.com/v1/models"
)
public interface DemoFeignClient {

    @PostMapping(value = "/queryUser"
            , headers = {"systemCode=123","secretKey=123"})
    JSONObject queryUser(@RequestBody JSONObject request);

}


